#include "progress.h"

void download(double total,double speed)
{
    double current_total = 0.0;
    while(current_total<=total)
    {
        progress(current_total,total);
        usleep(10000);
        current_total += speed;
    }
    printf("\n");
}

int main()
{
    printf("程序下载中：\n");
    download(1024.0,2.0);
    return 0;
}
